<style>
    html,body{
        width: 100%;
        height: 100%;

    }
    .code-wrap{
        position: absolute;
        top: 44px;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        z-index: 1;
        background-color: #fff;
        padding: 0 0 1em 0;
    }
</style>
<nav class="navbar navbar-inverse" role="navigation">
    <div class="container-fluid">
        <!-- 导航头部 -->
        <div class="navbar-header">
            <!-- 移动设备上的导航切换按钮 -->
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <!-- 品牌名称或logo -->
            <a class="navbar-brand" href="#">LOG</a>
        </div>
        <!-- 导航项目 -->
        <div class="collapse navbar-collapse navbar-collapse-example">
            <!-- 一般导航项目 -->

            <ul class="nav navbar-nav">
                <?php foreach (self::$config as $name => $m) {?>
                <li><a href="?m=<?=$name?>"><?=$m['description']?></a></li>
                <?php } ?>
            </ul>

            <ul class="nav navbar-nav pull-right">
                <li><a href="?m=auth&a=logout">注销</a></li>
            </ul>
        </div><!-- END .navbar-collapse -->
    </div>
</nav>